package com.androidplex.bucketlist.model;

/**
 * Purpose of this class is to represent the data stored by each item in the bucket list.
 */
public class BucketListItem {

    private String itemText;
    private String description;
    private boolean done = false;

    public BucketListItem(String text, String desc) {
        itemText = text;
        description = desc;
    }

    public void updateText(String newText) {
        itemText = newText;
    }

    public void updateDescription(String newDescription) {
        description = newDescription;
    }

    public String getDescription() {
        return description;

    }

    public void setDone() {
        done = true;
    }

    @Override
    public String toString() {
        return getName();
    }

    public String getNFCString() {
        return getName()+ "%%%" + getDescription();
    }


    public String getName() {
        return itemText;
    }

}
